package course.dao;

import course.pojo.entity.TeaSub;

import java.sql.Connection;
import java.util.List;

/**
 * @author HLF
 * @date 2022/7/1 9:45
 */
public interface TeaSubDao {

    int addTeaSub(TeaSub teaSub, Connection connection);


    List<TeaSub> getList(Connection connection);


    List<TeaSub> getByTid(Integer tid, Connection connection);

    List<TeaSub> getBySuid(Integer suid, Connection connection);

    TeaSub getByTidAndSuid(Integer tid, Integer suid, Connection connection);

    int deleteByTidAndSuid(Integer tid, Integer suid, Connection connection);

    int deleteSelect(List<Integer> ids, Integer tid, Connection connection);
}
